<?include("../../config/config.php");
$DM->loadClass("tracker","page");
// create and instance class
$object_page = new page();
$object_page->id_page = array_key_exists("id_page",$_POST)?$_POST["id_page"]:""; 
$object_page->id_site = array_key_exists("id_site",$_POST)?$_POST["id_site"]:""; 
$object_page->txt_url = array_key_exists("txt_url",$_POST)?$_POST["txt_url"]:""; 
$object_page->txt_query = array_key_exists("txt_query",$_POST)?$_POST["txt_query"]:""; 
$object_page->title = array_key_exists("title",$_POST)?$_POST["title"]:""; 
if ($object_page->save()){
	header("Location: page.list.php");
}else{
	exit("Erro ao salvar page");
}
?>
